package com.shujia.java.day18.demo11;

/**
* @Description: Demo  修改Join
* @Author: 王火火
* @Date: 2019/8/20 15:30
 * run和start的区别
 *
 * 爬山的
 * 模拟叫号
 * 
*/
public class Demo {
    public static void main(String[] args) throws Exception {
        MyThreadDemo myThreadDemo = new MyThreadDemo();
        MyThreadDemo myThreadDemo1 = new MyThreadDemo();
        myThreadDemo.setName("张三");
        //start -> run 两个线程交叉执行 是线程
        myThreadDemo.start();
        myThreadDemo1.start();
        //run 这运行是单线程
//        myThreadDemo.run();
//        myThreadDemo1.run();
    }
}
